package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.entity.Hr;
import com.mapper.HrMapper;
import com.service.HrService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author viyoung
 * @since 2019-10-24
 */
@Service
public class HrServiceImpl extends ServiceImpl<HrMapper, Hr> implements HrService {

	
	@Autowired
	private HrMapper hrMapper;
	
	public List<Hr> findByRemake(String remake){
		
		
		QueryWrapper<Hr> wrapper =new QueryWrapper<>();
		wrapper.lambda().eq(Hr::getRemark,remake);
		System.out.println("=========="+wrapper);
		
		
		return hrMapper.selectList(wrapper);
	}
}
